package eteam.aps.common.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 排序枚举
 */
public enum SortEnum implements IBaseEnum<Integer> {
    /**
     * 正序
     */
    Asc(0, "正序"),
    /**
     * 倒序
     */
    Desc(1, "倒序");

    @EnumValue
    @JsonValue
    private int val = 0;

    private String label = "";

    private SortEnum(int value, String desc) {
        val = value;
        label = desc;
    }

    @Override
    public Integer getValue() {
        return val;
    }

    @Override
    public String getDescription() {
        return label;
    }
}
